<?php
namespace addons\links\models;
use models\BaseModel;

class LinksModel extends BaseModel {
    protected $auto = [
        ['create_time' , 'time' , self::MODEL_INSERT , 'function'],
        ['update_time' , 'time' , self::MODEL_UPDATE , 'function'],
    ];

    protected $validate = [
        ['name' , 'required' , '请输入链接名称'] ,
    ];
}